//
//  LoadingView.h
//  test
//
//  Created by LONG on 16/5/5.
//  Copyright © 2016年 wangdao. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol LoadingViewDelegate <NSObject>

@optional
- (void)closeLoadingView;

@end

@interface LoadingView : UIView
{
    ///指示器
    UIActivityIndicatorView *indicatorView;
    ///包含指示器和文字的view
    UIView *conerView;
}
///是否是模拟同步
@property (nonatomic) BOOL isLikeSynchro;
@property (nonatomic,weak) id<LoadingViewDelegate>delegate;

///显示加载框
- (void)show;
//        [[LoadingView shareLoadingView] show];

///关闭加载框
- (void)close;
//        [[LoadingView shareLoadingView] close];

///获取LoadingView单例,isLikeSynchro  Yes:类似同步，通过遮盖整个窗体实现 No:异步
+ (LoadingView *)shareLoadingView;
@end